/**
 * 数据表标志位常量
 */
package cn.antia.cep.common;

/**
 * @author sunkeei
 *
 */
public class DBFlag {
	//====================公共常量======================//
	public static final int VALID = 1;			//有效的(所有表中生效标志(有效)都使用此常量)
	public static final int INVALID = 0;			//无效的(所有表中生效标志(无效)都使用此常量)
	public static final int RIGHT = 1;			//正确的
	public static final int WRONG = 0;			//错误的
	public static final int SKIPED = 2;			//跳过
	//--------------------------------用户------------------------------//
	public static final int MALE = 1;			//男
	public static final int FEMALE = 2;			//女
	//=============================用户表标志位　valid ======================//
	public static final int USER_DELETE = 2;	//用户注销标志
	public static final int USEr_LOCKOUT = 3;	//被封的用户
	public static final int USER_LOCKED = 4;	//未启用的用户
	public static final int USER_SYS = 0;
	public static final String USER_SYS_NAME = "system";
	
	//===========================仿问日志表=================================//
	//用户类型
	public static final int VISIT_LOG_USER_UNDEFINED = 0;		//未定义(在SESSION创建时使用)
	public static final int VISIT_LOG_USER_REGISTERED = 1;		//注册用户
	public static final int VISIT_LOG_USER_UNREGISTERED = 2;	//未注册用户
	//登录类型
	public static final int VISIT_LOG_LOGIN_GENE = 1;
	public static final int VISIT_LOG_LOGIN_ADMIN = 2;
	
	//============================角色表=================================//
	//内置角色
	public static final int ROLE_NORMAL = 3;				//一般角色
	public static final int ROLE_NORMAL_MANAGER = 2;		//一般管理员
	public static final int ROLE_SUPER_MANAGER = 1;			//超级管理员
}